package com.qdrtme.landemo.newcms;

import android.content.Context;

import com.qdrtme.landemo.BaseApi;

import org.json.JSONException;

import java.util.HashMap;

/**
 * @Created by taylor on 12/16/17.
 * @class 活动详情
 */

public class VoteDetailApi extends BaseApi {

    private String voteActivityId;

    public VoteDetailApi(Context c) {
        super(c);
    }

    @Override
    protected String getURL() {
        return BaseApi.VOTE_DETAIL;
    } // + "/" + voteActivityId;

    @Override
    protected void getParams(HashMap<String, Object> params) {
        super.getParams(params);
        params.put("voteActivityId", voteActivityId);
    }

    @Override
    protected boolean analysisOutput(String result) throws JSONException {
        return true;
    }

    public void setVoteActivityId(String voteActivityId) {
        this.voteActivityId = voteActivityId;
    }
}
